package com.ai.bitcoin.jpa.dao;

import com.ai.bitcoin.jpa.entity.BccArticle;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;


public interface BccArticleDao extends JpaRepository<BccArticle, String>, JpaSpecificationExecutor<BccArticle> {

    Page<BccArticle> findByBccId(String bccId, Pageable pageable);

    BccArticle findByBccIdAndUniqueKey(String bccId, String id);
}
